package com.kgc.travel.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MojorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MojorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMojorIdIsNull() {
            addCriterion("mojor_id is null");
            return (Criteria) this;
        }

        public Criteria andMojorIdIsNotNull() {
            addCriterion("mojor_id is not null");
            return (Criteria) this;
        }

        public Criteria andMojorIdEqualTo(Integer value) {
            addCriterion("mojor_id =", value, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdNotEqualTo(Integer value) {
            addCriterion("mojor_id <>", value, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdGreaterThan(Integer value) {
            addCriterion("mojor_id >", value, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mojor_id >=", value, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdLessThan(Integer value) {
            addCriterion("mojor_id <", value, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdLessThanOrEqualTo(Integer value) {
            addCriterion("mojor_id <=", value, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdIn(List<Integer> values) {
            addCriterion("mojor_id in", values, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdNotIn(List<Integer> values) {
            addCriterion("mojor_id not in", values, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdBetween(Integer value1, Integer value2) {
            addCriterion("mojor_id between", value1, value2, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mojor_id not between", value1, value2, "mojorId");
            return (Criteria) this;
        }

        public Criteria andMojorNumIsNull() {
            addCriterion("mojor_num is null");
            return (Criteria) this;
        }

        public Criteria andMojorNumIsNotNull() {
            addCriterion("mojor_num is not null");
            return (Criteria) this;
        }

        public Criteria andMojorNumEqualTo(String value) {
            addCriterion("mojor_num =", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumNotEqualTo(String value) {
            addCriterion("mojor_num <>", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumGreaterThan(String value) {
            addCriterion("mojor_num >", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumGreaterThanOrEqualTo(String value) {
            addCriterion("mojor_num >=", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumLessThan(String value) {
            addCriterion("mojor_num <", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumLessThanOrEqualTo(String value) {
            addCriterion("mojor_num <=", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumLike(String value) {
            addCriterion("mojor_num like", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumNotLike(String value) {
            addCriterion("mojor_num not like", value, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumIn(List<String> values) {
            addCriterion("mojor_num in", values, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumNotIn(List<String> values) {
            addCriterion("mojor_num not in", values, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumBetween(String value1, String value2) {
            addCriterion("mojor_num between", value1, value2, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNumNotBetween(String value1, String value2) {
            addCriterion("mojor_num not between", value1, value2, "mojorNum");
            return (Criteria) this;
        }

        public Criteria andMojorNameIsNull() {
            addCriterion("mojor_name is null");
            return (Criteria) this;
        }

        public Criteria andMojorNameIsNotNull() {
            addCriterion("mojor_name is not null");
            return (Criteria) this;
        }

        public Criteria andMojorNameEqualTo(String value) {
            addCriterion("mojor_name =", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameNotEqualTo(String value) {
            addCriterion("mojor_name <>", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameGreaterThan(String value) {
            addCriterion("mojor_name >", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameGreaterThanOrEqualTo(String value) {
            addCriterion("mojor_name >=", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameLessThan(String value) {
            addCriterion("mojor_name <", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameLessThanOrEqualTo(String value) {
            addCriterion("mojor_name <=", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameLike(String value) {
            addCriterion("mojor_name like", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameNotLike(String value) {
            addCriterion("mojor_name not like", value, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameIn(List<String> values) {
            addCriterion("mojor_name in", values, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameNotIn(List<String> values) {
            addCriterion("mojor_name not in", values, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameBetween(String value1, String value2) {
            addCriterion("mojor_name between", value1, value2, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorNameNotBetween(String value1, String value2) {
            addCriterion("mojor_name not between", value1, value2, "mojorName");
            return (Criteria) this;
        }

        public Criteria andMojorDescIsNull() {
            addCriterion("mojor_desc is null");
            return (Criteria) this;
        }

        public Criteria andMojorDescIsNotNull() {
            addCriterion("mojor_desc is not null");
            return (Criteria) this;
        }

        public Criteria andMojorDescEqualTo(String value) {
            addCriterion("mojor_desc =", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescNotEqualTo(String value) {
            addCriterion("mojor_desc <>", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescGreaterThan(String value) {
            addCriterion("mojor_desc >", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescGreaterThanOrEqualTo(String value) {
            addCriterion("mojor_desc >=", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescLessThan(String value) {
            addCriterion("mojor_desc <", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescLessThanOrEqualTo(String value) {
            addCriterion("mojor_desc <=", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescLike(String value) {
            addCriterion("mojor_desc like", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescNotLike(String value) {
            addCriterion("mojor_desc not like", value, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescIn(List<String> values) {
            addCriterion("mojor_desc in", values, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescNotIn(List<String> values) {
            addCriterion("mojor_desc not in", values, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescBetween(String value1, String value2) {
            addCriterion("mojor_desc between", value1, value2, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorDescNotBetween(String value1, String value2) {
            addCriterion("mojor_desc not between", value1, value2, "mojorDesc");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateIsNull() {
            addCriterion("mojor_gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateIsNotNull() {
            addCriterion("mojor_gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateEqualTo(Date value) {
            addCriterion("mojor_gmt_create =", value, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateNotEqualTo(Date value) {
            addCriterion("mojor_gmt_create <>", value, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateGreaterThan(Date value) {
            addCriterion("mojor_gmt_create >", value, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("mojor_gmt_create >=", value, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateLessThan(Date value) {
            addCriterion("mojor_gmt_create <", value, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("mojor_gmt_create <=", value, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateIn(List<Date> values) {
            addCriterion("mojor_gmt_create in", values, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateNotIn(List<Date> values) {
            addCriterion("mojor_gmt_create not in", values, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateBetween(Date value1, Date value2) {
            addCriterion("mojor_gmt_create between", value1, value2, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("mojor_gmt_create not between", value1, value2, "mojorGmtCreate");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedIsNull() {
            addCriterion("mojor_gmt_modified is null");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedIsNotNull() {
            addCriterion("mojor_gmt_modified is not null");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedEqualTo(Date value) {
            addCriterion("mojor_gmt_modified =", value, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedNotEqualTo(Date value) {
            addCriterion("mojor_gmt_modified <>", value, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedGreaterThan(Date value) {
            addCriterion("mojor_gmt_modified >", value, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("mojor_gmt_modified >=", value, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedLessThan(Date value) {
            addCriterion("mojor_gmt_modified <", value, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedLessThanOrEqualTo(Date value) {
            addCriterion("mojor_gmt_modified <=", value, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedIn(List<Date> values) {
            addCriterion("mojor_gmt_modified in", values, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedNotIn(List<Date> values) {
            addCriterion("mojor_gmt_modified not in", values, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedBetween(Date value1, Date value2) {
            addCriterion("mojor_gmt_modified between", value1, value2, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorGmtModifiedNotBetween(Date value1, Date value2) {
            addCriterion("mojor_gmt_modified not between", value1, value2, "mojorGmtModified");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelIsNull() {
            addCriterion("mojor_is_del is null");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelIsNotNull() {
            addCriterion("mojor_is_del is not null");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelEqualTo(Integer value) {
            addCriterion("mojor_is_del =", value, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelNotEqualTo(Integer value) {
            addCriterion("mojor_is_del <>", value, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelGreaterThan(Integer value) {
            addCriterion("mojor_is_del >", value, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("mojor_is_del >=", value, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelLessThan(Integer value) {
            addCriterion("mojor_is_del <", value, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("mojor_is_del <=", value, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelIn(List<Integer> values) {
            addCriterion("mojor_is_del in", values, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelNotIn(List<Integer> values) {
            addCriterion("mojor_is_del not in", values, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelBetween(Integer value1, Integer value2) {
            addCriterion("mojor_is_del between", value1, value2, "mojorIsDel");
            return (Criteria) this;
        }

        public Criteria andMojorIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("mojor_is_del not between", value1, value2, "mojorIsDel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}